let vm = new Vue({
    el: "#content",
    data: {
        userId: '',
        focus: 0,
        user: {}
    },
    methods: {
        doDetail: function () {
            axios({
                method: "get",
                url: `/user/detail/${this.userId}`
            }).then(res => {
                if (res.data.flag) {
                    this.focus = res.data.data.focus;
                    this.user = res.data.data.user;
                } else {
                    layer.msg(res.data.message);
                }
            });
        }
    },
    created: function () {
        this.userId = sessionStorage.getItem("userId");
        this.doDetail();
    }
})